package dy.com.第6六章简易聊天室.simpleClient.Client;

import dy.com.收发并行.constants.UDPConstants;
import dy.com.第6六章简易聊天室.simpleClient.Client.bean.ServerInfo;

import java.io.IOException;

public class Client {
    public static void main(String[] args) {
        ServerInfo info = UDPClientSearcher.searchServer(UDPConstants.PORT_CLIENT_RESPONSE,10000);
        System.out.println(info);
        if(info!=null){
            try {
                TCPClient.linkwith(info);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }
}
